import { createSlice } from '@reduxjs/toolkit'

const AuthSlice = createSlice({
  name: 'access',
  initialState: [] as IUser.Response.IAccess[],
  reducers: {
    accessAdded(state, action) {
      state.push(...action.payload)
    }
  }
})
export const { accessAdded } = AuthSlice.actions
export default AuthSlice.reducer
